package com.bestcem.xm.common.core.config.grpc;

import io.grpc.Channel;
import io.grpc.ClientInterceptor;

import java.util.List;

/**
 * 接口方法，创建grpc连接channel
 * @author sh.pei <sh.pei@idiaoyan.com>
 * @version v1.0
 * @date 2021/11/15 23:23
 */
public interface XmGrpcFactory {

    Channel[] xmCreateChannel(String name, List<ClientInterceptor> customInterceptors, boolean sortInterceptors);
}
